package com.example.apprendrechinois.pinyin;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;

import com.example.apprendrechinois.R;
import com.example.apprendrechinois.model.ModelFactory;
import com.example.apprendrechinois.model.language.Language;

import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.GridView;

public class AyPinyinComposition extends Activity {
	
	
	
	

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);       
        
    	setContentView(R.layout.ay_pinyin_composition);
    	
    	Language l = ModelFactory.getLanguage();
    	
    	GridView vowels = (GridView)findViewById(R.id.pinyinComposition_vowelGrid);
    	
    	vowels.setAdapter(new AdVowelButton(this, l.vowelsArray()));
    	
    	
    	
    	
    }

}
